package tk.mybatis.springboot.service;

import java.util.List;

import tk.mybatis.springboot.model.Commodity;
import tk.mybatis.springboot.model.CountermanInfo;
import tk.mybatis.springboot.model.TOrderExtend;
import tk.mybatis.springboot.model.TUser;
import tk.mybatis.springboot.model.TrankList;
import tk.mybatis.springboot.model.Usermessage;
import tk.mybatis.springboot.model.UserMessageExtend;
import tk.mybatis.springboot.wexin.bean.Userinfo;

public interface JiYouService {
	public TUser getUserInfo(Userinfo userinfo);
	
	public List<TOrderExtend> getOrders(Userinfo userinfo);
	
	public List<TUser> getFollows(Userinfo userinfo);
	
	public Boolean follows(Userinfo userinfo, String userId);
	
	public Boolean unFollows(Userinfo userinfo, String userId);
	
	public List<UserMessageExtend> getMessage(Userinfo userinfo, String type);
	
	public List<UserMessageExtend> getMessageInfo(Userinfo userinfo, String countermanId);
	
	public Boolean setUserAddress(Userinfo userinfo, String latitude, String longitude);
	
	public List<TUser> getCounterman(Userinfo userinfo);
	
	public CountermanInfo getCountermanInfo(String countermanId);
	
	public TrankList getrankingList(String type);
	
	public Commodity getCommodity(String commodityId);
	
	public Usermessage getSystemMessageInfo(String messageId);
}
